//
//  DownTableViewCell.m
//  CarFace
//
//  Created by dlios on 15-3-26.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import "DownTableViewCell.h"

@implementation DownTableViewCell

-(void)dealloc
{
    [_rightView release];
    [_titleLabel release];
    [super dealloc];

}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self){
        self.titleLabel = [[UILabel alloc]init];
        [self.contentView addSubview:self.titleLabel];
        self.titleLabel.font = [UIFont systemFontOfSize:17.0f];
//        self.titleLabel.textColor = [UIColor grayColor];
        [_titleLabel release];
        
        
        self.rightView = [[UIImageView alloc]init];
        [self.contentView addSubview:self.rightView];
        [_rightView release];
        
    }
    return self;



}

- (void)layoutSubviews
{
    [super layoutSubviews];
    CGFloat width = self.contentView.bounds.size.width;
    CGFloat height = self.contentView.bounds.size.height;
    self.titleLabel.frame = CGRectMake(20, 0, width / 2, height);
    self.rightView.frame = CGRectMake(width * 3 / 4, 0, width / 5, height);
    
   //  下拉侧边栏界面
    self.rightView.image = [UIImage imageNamed:@"idagou.png"];
    self.rightView.hidden = YES;

    //用在主题论坛详情界面
    self.titleLabel.text = self.forum.bbsname;

}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
